import Vue from 'vue'
import VueRouter from 'vue-router'
import goods from 'views/goods';
import ratings from 'views/ratings';
import seller from 'views/seller';

Vue.use(VueRouter)

const routes = [{
  path: '/',
  redirect: '/goods'
}, {
  path: '/goods',
  component: goods
}, {
  path: '/ratings',
  component: ratings
}, {
  path: '/seller',
  component: seller
}];

const router = new VueRouter({
  linkActiveClass: 'active',
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
